package com.firebird.app.fekpsl.api

import com.firebird.app.fekpsl.bean.HttpResult
import com.firebird.app.fekpsl.bean.WallCommentResponseBody
import com.firebird.app.fekpsl.bean.WallReader
import com.firebird.app.fekpsl.bean.WallResponseBody
import io.reactivex.Observable
import retrofit2.http.*

/**
 * Created by firebird on 2018/4/21.
 */
interface WallApiService {
    /**
     * 获取上墙列表数据
     * @param pageNo
     * @param userUuid
     */
    @GET("wall/list/{pageNo}/{userUuid}/json")
    fun getWallList(@Path("pageNo") pageNo: Int,
                    @Path("userUuid") userUuid: String): Observable<HttpResult<WallResponseBody>>
    @GET("wall/reader/list/{wallId}/json")
    fun getWallReaderList(@Path("wallId") wallId: Int): Observable<HttpResult<MutableList<WallReader>>>
    @GET("wall/comment/list/{pageNo}/{wallId}/json")
    fun getWallCommentList(@Path("pageNo") pageNo: Int,
                           @Path("wallId") wallId: Int): Observable<HttpResult<WallCommentResponseBody>>

}